package com.bub.pay.core.entity.vo.user;

import com.alibaba.fastjson.JSON;
import com.bub.pay.framework.common.base.BaseVo;

import java.util.List;

/**
 * 添加角色
 */
public class AddRoleVo extends BaseVo {
    /**
     * 用户类型，1=商户，2=代理，3=管理平台，4=分销商
     */
    private Integer type;
    /**
     * 角色名称
     */
    private String name;
    private String code;
    private Long extendId;
    /**
     * 权限菜单
     */
    private List<Long> permIds;
    /**
     * 角色描述
     */
    private String remarks;

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public AddRoleVo(String remarks) {
        this.remarks = remarks;
    }

    public AddRoleVo(Integer type, String name, String code, Long extendId, List<Long> permIds, String remarks) {
        this.type = type;
        this.name = name;
        this.code = code;
        this.extendId = extendId;
        this.permIds = permIds;
        this.remarks = remarks;
    }

    public AddRoleVo() {
    }

    public Long getExtendId() {
        return extendId;
    }

    public void setExtendId(Long extendId) {
        this.extendId = extendId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Long> getPermIds() {
        return permIds;
    }

    public void setPermIds(List<Long> permIds) {
        this.permIds = permIds;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
